class PhoneListController {
    phones: any[];
    orderProp: string;
    query: string;
   
    static $inject = ['Phone'];
    constructor(Phone: any) {
      this.phones = Phone.query();
      this.orderProp = 'age';
    }
   
  }
   
  angular.
    module('phoneList').
    component('phoneList', {
      templateUrl: 'app/phone-list/phone-list.template.html',
      controller: PhoneListController
    });